<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/validate.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/my97.jsp" />
<script type="text/javascript">
	function myChk() {
		var start_time = $("input[name='srh_start']").val();
		if (start_time.length == 0) {
			$("#form1").validate({
				rules : {
					'srh_end' : {
						required : true
					}
				}
			});
		}
	}
	function query() {
		$("#form1").submit();
	}
</script>
</head>
<body>
	<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
	<div>
		<form action="${path}/ix/detail/seal/apply/list.htm" id="form1"
			method="post">
			<h2>
				<div>印章申请明细</div>
			</h2>
			<div class="query">
				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="5">
					<tr>
						<td width="80" align="right"><strong>申请机构：</strong></td>
						<td width="150" align="left"><input name="srh_uname"
							type="text" /></td>
						<td width="80" align="right"><strong>使用机构：</strong></td>
						<td width="150" align="left"><input name="srh_name"
							type="text" /></td>
						<td width="80" align="right"><strong>操作时间：</strong></td>
						<td width="150" align="left"><input name="srh_start"
							onBlur="myChk()" readonly="readonly" type="text" maxlength="20"
							onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" /></td>
						<td width="5" align="right">-</td>
						<td width="150" align="left"><input name="srh_end"
							readonly="readonly" type="text" maxlength="20"
							onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" /></td>
						<td align="left"><a href="javascript:query();"> <img
								src="${path}/style_cp/img/query.jpg" name="Image4" width="85"
								height="27" border="0" id="Image4" />
						</a></td>
					</tr>
				</table>
			</div>
			<table width="100%" class="listlindex">
				<tr>
					<th>申请机构</th>
					<th>使用机构</th>
					<th>刻章字样</th>
					<th>印章种类</th>
					<th>印章类型</th>
					<th>操作种类</th>
					<!-- <th>操作机构</th> -->
					<th>结果</th>
					<th>操作日期</th>
				</tr>
				<c:if test="${fn:length(list)==0}">
					<tr>
						<td colspan="8"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>
				<c:forEach items="${list}" var="v">
					<c:if test="${v.user_bank_id==n_bank_id}">
						<tr>
							<td>${v.apply_bank_name}</td>
							<td>${v.use_bank_name}</td>
							<td>${v.title}</td>
							<td>${v.type_name}</td>
							<td>${v.config_name}</td>
							<td>申请</td>
							<td>${v.flag}</td>
							<td><fmt:formatDate value="${v.created}"
									pattern="yyyy-MM-dd HH:mm:ss" /></td>
						</tr>
						<c:if test="${v.c_time!='' && v.c_time!=null}">
							<tr>
								<td>${v.apply_bank_name}</td>
								<td>${v.use_bank_name}</td>
								<td>${v.title}</td>
								<td>${v.type_name}</td>
								<td>${v.config_name}</td>
								<td>复核</td>
								<td>${v.v_flag}</td>
								<td><fmt:formatDate value="${v.c_time}"
										pattern="yyyy-MM-dd HH:mm:ss" /></td>
							</tr>
						</c:if>
					</c:if>
					<c:if test="${v.m_bank_id==n_bank_id}">
						<tr>
							<td>${v.apply_bank_name}</td>
							<td>${v.use_bank_name}</td>
							<td>${v.title}</td>
							<td>${v.type_name}</td>
							<td>${v.config_name}</td>
							<td>审核</td>
							<td>${v.f_flag}</td>
							<td><fmt:formatDate value="${v.m_time}"
									pattern="yyyy-MM-dd HH:mm:ss" /></td>
							<%-- <td>${v.operate}</td> --%>
							<%-- <td>${v.operate_bank_name}</td> --%>
							<%-- <td>${v.verify_type}</td> --%>
						</tr>
					</c:if>
				</c:forEach>
			</table>
			<div class="options">
				<div class="quotes">
					<page:page page="${page}" />
				</div>
				<div class="clear"></div>
			</div>
		</form>
	</div>
</body>
</html>